﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControlDoacao.ascx.cs" Inherits="LarDosIdosos.WebUserControlDoacao" %>
<div style="float:left; width:100%;">
        
        <div style="float:left;margin-bottom:30px;margin-right:30px;">
	        <a href='#' onclick="PrintDiv2()">
	            <asp:Image BorderWidth="0" runat="server" ID="imagePrint" ImageUrl="~/Imagens/IconPrintPage.png" style="margin-right:20px;" ToolTip="Imprimir este cadastro"/>
	        </a>
	    </div>
        <asp:HiddenField ID="hiddenFieldCodigoDoacao" runat="server" />
        <div style="float:left;width:100%;background-color:Lime;color:Green;">
            <asp:Label ID="labelFeedback" runat="server" Visible="false"/>
        </div>
        <table width="100%" cellspacing="20px" class="tableDoacao">
            <tr>
                <td style="width:20%;">
                    Tipo de Doação:
                </td>
                <td>
                    <asp:Label ID="labelTipoDeDoacao" runat="server" Style="width:30%"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width:20%;">
                    Produto:
                </td>
                <td>
                    <asp:Label ID="labelProduto" runat="server" Style="width:30%">
                    </asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width:20%;">
                    Data da Doação:
                </td>
                <td>
                    <asp:Label ID="labelDataEntrada" runat="server" Style="width:30%"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width:20%;">
                    Quantidade:
                </td>
                <td>
                    <asp:Label ID="labelQuantidade" runat="server" Style="width:10%"></asp:Label>
                    <asp:Label ID="labelUnidadeDeMedida" runat="server" Style="width:10%"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView
                        ID="gridViewFuncionario"
                        runat="server"
                        Width="70%"
                        AutoGenerateColumns="False"
				        BackColor="#E9E9E9"
				        GridLines="None"
                        CellPadding="2">
                        
                        <AlternatingRowStyle BackColor="#f7f7f7"/>
				        <HeaderStyle BackColor="#EEEEEE" ForeColor="Black" />
					    <RowStyle Height="50px" BackColor="#FFFFFF" ForeColor="#555555"/>
                        <EmptyDataRowStyle BackColor="#F7F7F7" Height="100px" VerticalAlign="Middle" HorizontalAlign="Center" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="1%" ShowHeader="false">
					            <ItemTemplate>
                                    <asp:HiddenField ID="hiddenFieldId" runat="server" Value='<%# Eval("Codigo_Funcionario") %>' />
				                </ItemTemplate>
				            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Nome do Funcionário">
				                <ItemTemplate> 
				                    <asp:Label ID="labelNomeDoFuncionario" runat="server" Text='<%# Eval("Nome_Funcionario") %>' ></asp:Label>
				                </ItemTemplate>
				                <headerstyle Width="30%"/>
				            </asp:TemplateField>
                            <asp:TemplateField HeaderText="CPF do Funcionário">
				                <ItemTemplate> 
				                    <asp:Label ID="labelCpfDoFuncionario" runat="server" Text='<%# Eval("CPF_Funcionario") %>' ></asp:Label>
				                </ItemTemplate>
				                <headerstyle Width="20%"/>
				            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Email do Funcionário">
				                <ItemTemplate> 
				                    <asp:Label ID="labelEmailFuncionario" runat="server" Text='<%# Eval("Email_Funcionario") %>' ></asp:Label>
				                </ItemTemplate>
				                <headerstyle Width="30%"/>
				            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr id="trParceiro" runat="server" visible="false">
                <td colspan="2">
                    <div style="width:100%">
                        <table style="width:100%">
                            <tr>
                                <td colspan="2">
                                    <asp:GridView
                                        ID="gridViewParceiro"
                                        runat="server"
                                        Width="70%"
                                        AutoGenerateColumns="False"
				                        BackColor="#E9E9E9"
				                        GridLines="None"
                                        CellPadding="2">
                        
                                        <AlternatingRowStyle BackColor="#f7f7f7"/>
				                        <HeaderStyle BackColor="#EEEEEE" ForeColor="Black" />
					                    <RowStyle Height="50px" BackColor="#FFFFFF" ForeColor="#555555"/>
                                        <EmptyDataRowStyle BackColor="#F7F7F7" Height="100px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="1%" ShowHeader="false">
					                            <ItemTemplate>
                                                    <asp:HiddenField ID="hiddenFieldId" runat="server" Value='<%# Eval("Codigo_Parceiro") %>' />
				                                </ItemTemplate>
				                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Nome do Parceiro">
				                                <ItemTemplate> 
				                                    <asp:Label ID="labelNomeDoParceiro" runat="server" Text='<%# Eval("Nome_Parceiro") %>' ></asp:Label>
				                                </ItemTemplate>
				                                <headerstyle Width="30%"/>
				                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="CPF do Parceiro">
				                                <ItemTemplate> 
				                                    <asp:Label ID="labelCpfDoParceiro" runat="server" Text='<%# Eval("CPF_Parceiro") %>' ></asp:Label>
				                                </ItemTemplate>
				                                <headerstyle Width="20%"/>
				                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Grau de parentesco com o Parceiro">
				                                <ItemTemplate> 
				                                    <asp:Label ID="labelEmailParceiro" runat="server" Text='<%# Eval("Email_Parceiro") %>' ></asp:Label>
				                                </ItemTemplate>
				                                <headerstyle Width="30%"/>
				                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr id="trIdoso" runat="server" visible="false">
                <td colspan="2">
                    <div style="width:100%">
                        <table style="width:100%">
                            <tr>
                                <td colspan="2">
                                    <asp:GridView
                                        ID="gridViewIdoso"
                                        runat="server"
                                        Width="70%"
                                        AutoGenerateColumns="False"
				                        BackColor="#E9E9E9"
				                        GridLines="None"
                                        CellPadding="2">
                        
                                        <AlternatingRowStyle BackColor="#f7f7f7"/>
				                        <HeaderStyle BackColor="#EEEEEE" ForeColor="Black" />
					                    <RowStyle Height="50px" BackColor="#FFFFFF" ForeColor="#555555"/>
                                        <EmptyDataRowStyle BackColor="#F7F7F7" Height="100px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                        <Columns>
                                            <asp:TemplateField HeaderStyle-Width="1%" ShowHeader="false">
					                            <ItemTemplate>
                                                    <asp:HiddenField ID="hiddenFieldId" runat="server" Value='<%# Eval("Codigo_Idoso") %>' />
				                                </ItemTemplate>
				                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Nome do Idoso">
				                                <ItemTemplate> 
				                                    <asp:Label ID="labelNomeDoIdoso" runat="server" Text='<%# Eval("Nome_Idoso") %>' ></asp:Label>
				                                </ItemTemplate>
				                                <headerstyle Width="30%"/>
				                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="CPF do Idoso">
				                                <ItemTemplate> 
				                                    <asp:Label ID="labelCpfDoIdoso" runat="server" Text='<%# Eval("CPF_Idoso") %>' ></asp:Label>
				                                </ItemTemplate>
				                                <headerstyle Width="20%"/>
				                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
                            
    </div>